<template>
<!-- 封装一个公用bar组件 -->
  <van-sticky>
    <van-nav-bar v-show="!$route.meta.hideTitle">
      <template #left>
        <div v-if="$route.meta.isTabPage" @click="$router.push('/cities')">
          <span style="margin-right: 5px">广州</span>
          <van-icon name="arrow-down" color="#999" size="12" />
        </div>

        <div v-else @click="$router.back">
          <van-icon color="#999" name="cross" size="20" />
        </div>
      </template>

      <template #title>
        <span style="font-weight: normal; font-size: 16px">{{
          $route.meta.title
        }}</span>
      </template>

      <template #right>
        <van-icon color="#999" name="search" size="20" />
      </template>
    </van-nav-bar>
  </van-sticky>
</template>

<script setup>

</script>

<style lang="scss" scoped></style>
